<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common::common(title='角色列表')">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ></meta>
</head>
<body>
	<div class="x-body" id="app">
	  <input type="hidden" id="groupId" v-model="groupId" th:value="${groupId}" />
	  <input type="hidden" id="isAdmin" v-model="isAdmin" th:value="${isAdmin}" />
      <div class="layui-btn-container">
		  	<button class="layui-btn layui-btn-sm" @click.prevent="goBack"><i class="layui-icon">&#xe65c;</i>返回</button>
	        <button v-if="isAdmin=='1'" class="layui-btn layui-btn-sm" @click.prevent="addRoleToGroup"><i class="layui-icon layui-icon-group"></i>增加组内角色</button>
	        <button v-if="isAdmin=='1'" class="layui-btn layui-btn-sm" @click.prevent="deleteItem"><i class="layui-icon layui-icon-friends"></i>移除组内角色</button>
      </div>
      <table class="layui-table" id="datagrid" lay-filter="datagrid" lay-size="sm">
      </table>
	</div>
	<script type="text/javascript" th:src="@{/js/basic/rolegroup.js}"></script>
</body>
</html>